package com.jzo2o.orders.dispatch.strategys;

/**
 * @author Mr.M
 * @version 1.0
 * @description 距离优先策略
 * @date 2023/12/30 16:38
 */
public class DistanceStrategyImpl extends AbstractStrategyImpl {
    @Override
    protected IProcessRule getRules() {
        //距离优先策略中有两个规则，组成一个责任链
        IProcessRule rule = new AcceptNumRule(null);
        IProcessRule ruleChain = new DistanceRule(rule);
        return ruleChain;
    }
}
